package com.itmuch.cloud.study.service;

import com.itmuch.cloud.study.entity.TransportDetail;

import javax.transaction.Transactional;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface TransportDetailService {

//根据明细id或者物料查询数据
	@Transactional
	public List<TransportDetail> findDetailByTransportIdAndMaterialId(String transportId,String materialId);

	//根据id删除一条明细
    @Transactional
    int deleteDetailByTransportId(String id);
//查询此明细下的物料是否已经扫描
    boolean findIsScanByDetailIds(List<String> lists);

    //修改扫描数量（发货数量）
	@Transactional
	boolean saveSendDeliveryQty(Set<String> ids, int f,int delNum);
    @Transactional
    boolean saveSendDeliveryQty(Set<String> ids, Map<String,String> delNum);
    //修改扫描数量（发货数量）
	@Transactional
	boolean saveSendDeliveryQty(Set<String> ids);

//根据id更新t_material_portdetail表中的状态
	@Transactional
	boolean updateMaterialAndTransportDetailStatusById(List<String> ids,int code);
//查询此delivery是否已经SEND(结单)
	boolean findOrderStatusByDelivery(String delivery);
	

	//boolean saveSendDeliveryQty(List<String> ids, int f, int delNum);
	
}

